package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2024-03-04
 * Time: 21:00
 */
public class Demo3 {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() { //匿名内部类
            @Override
            public void run() {

                    while (true) {
                        System.out.println("hello thread");
                    }
                }

        };
        Thread t = new Thread();
        t.start();
        while (true) {
            System.out.println("hello main");
        }
    }
}
